package org.dyz.banana.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KafkaInitConfiguration {
    @Bean
    public NewTopic dyzTopic(){
        return new NewTopic("dyz-topic",8,(short)1);
//       return  TopicBuilder.name("dyz-topic")
//               .partitions(8)
//               .replicas(1)
//               .build();
    }

}
